package com.lhd.struct.flyweight;

/**
 * @Author: liuhd
 * @Date: 2024/12/16 21:05
 * @Description:
 */
public class client {
    public static void main(String[] args) {
        BoxFactory factory = BoxFactory.getBoxFactory();
        AbstractBox IBox = factory.getBox("I");
        AbstractBox LBox = factory.getBox("L");
        AbstractBox OBox = factory.getBox("O");
        IBox.display("红");
    }
}
